The split() method of String values takes a pattern and divides this string into an ordered list of substrings by searching for the pattern. Try it · Syntax · Description · Examples
The split() method splits a string into an array of substrings. The split() method returns the new array. The split() method does not change the original ... W3Schools Tryit Editor · Slice() · String startsWith()